﻿@if (Request.IsAuthenticated) {
    <p>
        Hello, @Html.ActionLink(User.Identity.Name, "", "ChangePassword", routeValues: null, htmlAttributes: new { @class = "username", title = "Change password" })!
        @Html.ActionLink("Log off", "", "LogOff")
    </p>
} else {
    <ul>
        <li>@Html.ActionLink("Register", "", "Register", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("Log in", "", "LogOn", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}